//
//  AlertAndActionTool.h
//  MaiYi
//
//  Created by 1 on 16/1/4.
//  Copyright © 2016年 九福科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^alertClickBlock)(void);
typedef void(^actionClickBlock)(int index);

@interface AlertAndActionTool : NSObject


//typedef  void(^successRequestBlock)(NSURLSessionDataTask *  task, id  responseObject);
//
//typedef void(^failRequestBlock)(NSURLSessionDataTask *  task, NSError *  error);


//+(void)AFNetworkPost :(NSString *)urlStr  postDic:(NSMutableDictionary *)postDic  errorWithTost:(BOOL)hTost requestSuccessBlock:(successRequestBlock )successBack  requestFail :(failRequestBlock )failBack;




+ (void)showAlertWith:(NSString *)title AndContent:(NSString *)content AndViewController:(id)vController AndCallBack:(alertClickBlock)alertClick;

+ (void)showActionSheetWithTitle:(NSString *)title Item1:(NSString *)item1 AndItem2:(NSString *)item2  AndItem3:(NSString *)item3 AndViewController:(id)vController AndCallBack:(actionClickBlock)alertClick;

@end
